﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Staff_EditCourseData : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            //TextBox2.Text = Session["teacherId"].ToString();
            DetailsView1.DataSourceID = "SqlDataSource1";
            DetailsView1.DataBind();
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DetailsView1.DataSourceID = "SqlDataSource2";
        DetailsView1.DataBind();
    }
}